define("view/Login", [
  "component/LoginForm",
  "restTemplate",
  "text!./login.html",
  "css!./login.css"
], function( LoginForm, restTemplate, template) {
  // console.log(template)
    return {
        template: template,
        components: {
            LoginForm
        },
        methods: {
            handleSubmit({ userName, password }) {
                console.log(userName,password);
            }
        },
        created(){
            document.title=wxContext.getViewData().name;
        }
    };

});
